package com.hfut.dao;

import java.util.List;
import java.util.Map;

import com.hfut.entity.Customer;
import com.hfut.entity.CustomerFw;
import com.hfut.entity.CustomerGc;
import com.hfut.entity.CustomerGx;

/**
 * @author Administrator
 *
 */
public interface CustomerDao {

	
	/**
	 * @param map
	 * @return
	 */
	public List<Customer> find(Map<String,Object> map);
	
	/**
	 * @param map
	 * @return
	 */
	public Long getTotal(Map<String,Object> map);
	
	/**
	 * @param customer
	 * @return
	 */
	public int add(Customer customer);
	
	/**
	 * @param customer
	 * @return
	 */
	public int update(Customer customer);
	
	/**
	 * @param id
	 * @return
	 */
	public int delete(Integer id);
	
	/**
	 * @param id
	 * @return
	 */
	public Customer findById(Integer id);
	
	/**
	 * @return
	 */
	public List<Customer> findLossCustomer();
	
	/**
	 * @param map
	 * @return
	 */
	public List<CustomerGx> findCustomerGx(Map<String,Object> map);
	
	/**
	 * @param map
	 * @return
	 */
	public Long getTotalCustomerGx(Map<String,Object> map);
	
	/**
	 * @return
	 */
	public List<CustomerGc> findCustomerGc();
	
	/**
	 * @return
	 */
	public List<CustomerFw> findCustomerFw();

}
